<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Kra8\Snowflake\HasSnowflakePrimary;

class WithdrawOrder extends Model
{
    use SoftDeletes;
    use HasSnowflakePrimary;
    protected $fillable = [
        'member_id',
        'amount',
        'status',
        'channel',
        'error_info',
        'platform_open_id',
        'platform_order_no',
        'desc'
    ];
    public function author()
    {
        return $this->belongsTo('App\Models\Member', 'member_id');
    }
}
